package com.taoz.rpc.core.fault.retry;

import com.github.rholder.retry.RetryException;
import com.taoz.rpc.core.model.RpcResponse;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;

public interface RetryHelper {
    RpcResponse getResultWithRetry(Callable<RpcResponse> callable) throws ExecutionException, RetryException;
}
